#include "example1_1.h"
/**
 * 【例1-1】
 * 累乘 n!
 * @param n 累乘数
 * @return
 */
int accumulativeMultiplication(int n){
    int result = 1;
    for (int i = 0; i < n; ++i) {
        result = result*(i+1);
    }
    return result;
}
